x = eval(input("请输入层数x:"))
for i in range(x):
    y = (x-i-1)*' ' + (2*i+1)*'*'
    print(y)











